#!/bin/bash
function Typora(){
        if [  -n $1 ];then
           if [[ ! -e $1 || -f $1 ]];then
                        touch $1
                        typora $1 &
                        return
           fi
        fi
        >&2 echo "fail to open this file"
}